package com.yangyang.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Order implements Serializable {

    private Integer id;
    private String orderId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date orderDate;
    private String orderName;
    private String orderCk;
    private String orderKw;
    private String orderDh;
    private Double orderMoney;
    private Double orderMon;
    private String orderWay;
    private String orderOdd;
    private Double orderImage;
    private String orderAddress;
    private String orderContext;
    private List<Goods> goods;

    public String getOrderContext() {
        return orderContext;
    }

    public void setOrderContext(String orderContext) {
        this.orderContext = orderContext;
    }

    public List<Goods> getGoods() {
        return goods;
    }

    public void setGoods(List<Goods> goods) {
        this.goods = goods;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", orderDate=" + orderDate +
                ", orderName='" + orderName + '\'' +
                ", orderCk='" + orderCk + '\'' +
                ", orderKw='" + orderKw + '\'' +
                ", orderDh='" + orderDh + '\'' +
                ", orderMoney=" + orderMoney +
                ", orderMon=" + orderMon +
                ", orderWay='" + orderWay + '\'' +
                ", orderOdd='" + orderOdd + '\'' +
                ", orderImage='" + orderImage + '\'' +
                ", orderAddress='" + orderAddress + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getOrderCk() {
        return orderCk;
    }

    public void setOrderCk(String orderCk) {
        this.orderCk = orderCk;
    }

    public String getOrderKw() {
        return orderKw;
    }

    public void setOrderKw(String orderKw) {
        this.orderKw = orderKw;
    }

    public String getOrderDh() {
        return orderDh;
    }

    public void setOrderDh(String orderDh) {
        this.orderDh = orderDh;
    }

    public Double getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(Double orderMoney) {
        this.orderMoney = orderMoney;
    }

    public Double getOrderMon() {
        return orderMon;
    }

    public void setOrderMon(Double orderMon) {
        this.orderMon = orderMon;
    }

    public String getOrderWay() {
        return orderWay;
    }

    public void setOrderWay(String orderWay) {
        this.orderWay = orderWay;
    }

    public String getOrderOdd() {
        return orderOdd;
    }

    public void setOrderOdd(String orderOdd) {
        this.orderOdd = orderOdd;
    }

    public Double getOrderImage() {
        return orderImage;
    }

    public void setOrderImage(Double orderImage) {
        this.orderImage = orderImage;
    }

    public String getOrderAddress() {
        return orderAddress;
    }

    public void setOrderAddress(String orderAddress) {
        this.orderAddress = orderAddress;
    }

    public Order() {
    }

    public Order(Integer id, String orderId, Date orderDate, String orderName, String orderCk, String orderKw, String orderDh, Double orderMoney, Double orderMon, String orderWay, String orderOdd, Double orderImage, String orderAddress) {
        this.id = id;
        this.orderId = orderId;
        this.orderDate = orderDate;
        this.orderName = orderName;
        this.orderCk = orderCk;
        this.orderKw = orderKw;
        this.orderDh = orderDh;
        this.orderMoney = orderMoney;
        this.orderMon = orderMon;
        this.orderWay = orderWay;
        this.orderOdd = orderOdd;
        this.orderImage = orderImage;
        this.orderAddress = orderAddress;
    }
}
